package com.dj.product.k2faas.view.datasource;

import com.dj.product.k2faas.entity.datasource.DataSource;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

/**
 * Created by 丁建 on 2025/9/23 09:26
 *
 * @author 丁建
 */
public interface DataSourceView {
    DataSource findByName(String name);

    DataSource findById(long dataSourceId);

    DataSource save(DataSource dataSource);

    Page<DataSource> findAll(String keyword, Pageable pageable);

    void updateAllAsNotDefault();

}
